package com.frejoys.common.dto.common.upload;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

@Data
public class UploadPolicyDto {

    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "site", description = "上传来源：1.用户，2.商家，3.管理员", required = true, defaultValue = "1")
    private Integer site;

    @NotBlank(message = "{600}")
    @Schema(type = "String", name = "suffix", description = "文件后缀，例如 .png", required = true, defaultValue = ".png")
    private String suffix;

}
